Bug 498010, 546005 - fix assertion in gtk_tree_view_set_cursor_on_cell
authorKristian Rietveld <kris@gtk.org>
Thu, 30 Jul 2009 11:58:25 +0000 (13:58 +0200)
committerKristian Rietveld <kris@gtk.org>
Thu, 30 Jul 2009 18:24:31 +0000 (20:24 +0200)
commitff10f9ce0243a06d24e1319fa546d5a6e6d5eb69
tree0f00adc860aacccce5adf9bd316c2dc51f35cb5c
parent531c7e535bceb05ace097b9e9fdc4720e18b2252
Bug 498010, 546005 - fix assertion in gtk_tree_view_set_cursor_on_cell

Instead of failing with warning on !tree_view->priv->tree, return
silently when tree_view->priv->model is NULL.  Clarified in the
documentation that for invalid paths (and every path is invalid when no
model is set), the function will fail silently although the current
cursor will be unset.

Fixes bugs 498010 and 546005.
gtk/gtktreeview.c